//
//  JSViewController23.swift
//  RXSwiftTest
//
//  Created by ZhangBo on 2019/6/19.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa
import RxDataSources

class JSViewController23: BaseViewController {
    let disposeBag = DisposeBag()

    override func viewDidLoad() {
        super.viewDidLoad()

        test01()
    }

}


extension JSViewController23 {
    fileprivate func test01() {
       let button = UIButton(frame:CGRect(x: 10, y: 180, width: 200, height: 30))
        self.view.addSubview(button)
        button.backgroundColor = .grayColor232()
        //按钮点击响应
        button.rx.tap.subscribe(onNext:{ [weak self] in
            self?.showAlert(title: "...",message: "按钮被点击")
            }).disposed(by: disposeBag)

    }
    
    fileprivate func test02() {
    }
    
    fileprivate func test03() {
    }
    
    fileprivate func test04() {
    }
    
    fileprivate func test05() {
    }
    fileprivate func test06() {
    }
    
    fileprivate func test07() {
    }
    
}
